package com.dlc.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dlc.shop.bean.dto.PublicBankDTO;
import com.dlc.shop.bean.model.PublicBank;
import com.dlc.shop.bean.vo.PublicBankVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author gaozijie
 * @date 2023-03-21
 */
public interface PublicBankMapper extends BaseMapper<PublicBank> {
    /**
     * 获取对公户银行列表
     * @param publicBankDTO
     * @return
     */
    List<PublicBankVO> listPublicBank(@Param("publicBankDTO") PublicBankDTO publicBankDTO);

    /**
     * 保存
     * @param publicBankDTO
     */
    void save(@Param("publicBankDTO") PublicBankDTO publicBankDTO);

    /**
     * 更新
     * @param publicBankDTO
     */
    void update(@Param("publicBankDTO") PublicBankDTO publicBankDTO);

    /**
     * 批量删除
     * @param bankIds
     */
    void deleteByIds(@Param("bankIds") List<Long> bankIds);
}
